<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="${base}/images/favicon.ico" type="image/ico"/>
<title>Cy</title>
<link href="${base}/css/backLogincss1.css" media="screen" rel="stylesheet" type="text/css" />
<link href="${base}/css/backLogincss2.css" media="screen" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='${base}/js/jQuery/jquery-latest.js'></script>

<script type='text/javascript' src='${base}/dwr/engine.js'></script>
<script type='text/javascript' src='${base}/dwr/util.js'></script>
<script type='text/javascript' src='${base}/dwr/interface/backUserService.js'></script>
<script type="text/javascript">
	var j = jQuery.noConflict();
	
	j(function(){
		<#if msg?exists && msg?size gt 0>
			j("#dlg_flash_msg").html("${msg}");
			j("#errorMsg").fadeIn();
		</#if>
	})
	
	function userLogin(){
		j("#errorMsg").fadeOut();
		if( j.trim(j("#loginName").val()).length ==0 || j.trim(j("#userPassword").val()).length==0 ){
			j("#errorMsg").fadeIn();
			return;
		}
		
		var backuser={
				"loginName":j("#loginName").val(),
				"password":j("#userPassword").val()
		}
		backUserService.loginIndex(backuser,function(data){
			if(!data){
				j("#errorMsg").fadeIn();
			}else{
				j("#F1").submit();
			}
		})
	}

	function closeX(){
		j("#errorMsg").fadeOut();
	}
</script>
</head>
<body class="b-ffl-en">

<div id="fb-root"></div>

<div class="p40">
	<div class="dialog center">
	
	<div id="errorMsg" style="display:none ">    
	    <div id="dlg_flash_msg" class="error">用户名或密码错误,请重新登录或者联系系统管理员</div>
		<div class="close" onclick="closeX()"></div>
  	</div>
  	
  	<div class="dialog_content login">

  	<div style="margin: 25px 0; text-align: center; clear:both;">
    	<img src="${base}/images/logo_medium.png" width="300" height="56" />
  	</div>


<form action="login.action"  method="post" id="F1">
	<div id="logins">
		<div class="content" style="height:110px;">
		    <p>
		    	<label for="login" class="large" style="color:#10334D;line-height:24px;font-size:15px">Username</label>
		        <input id="loginName" name="condition.loginName" style="width: 200px;" tabindex="1" type="text" value="" />
		    </p>

		    <p>
		        <label for="password" class="large" style="color:#10334D;line-height:24px;font-size:15px">Password</label>
		        <input id="userPassword" name="condition.password" style="width: 200px;" tabindex="2" type="password" value="" />
		    </p>
	<!-- 忘记密码 
	        <p style="margin-bottom: 5px">
	            <a href="" class="indented large" onclick="return MM.ui.dialogs.show('forgot_password', {controller:'account',height:250, width:500, noHelp:true});">I forgot my password</a>
	        </p>
	-->
		    <p class="indented large" style="margin-top: 20px">
		        <input class="checkbox" id="remember_me" name="remember_me" type="checkbox" value="1" />
		        <label for="remember_me" class="checkbox">Remember me on this computer</label>
		   </p>

	      <div style="width:0; height:0; overflow: hidden;">
	        <button type="submit">&nbsp;</button>
	      </div>
		 
		</div>
		
	</div>

	<ul class="hori" style="position:absolute; bottom: 4px; left: 0; ">
	  <li>
	    <a class="button facebook small" href="tencent://message/?uin=123836047666&Site=www.homevv.com&Menu=yes">联系管理员</a>
	  </li>
	</ul>


	<div class="dialog_buttons">
	  <input class="button default" id="btn_signin" name="commit"  style="font-size:17px; float:left" tabindex="3" type="button" value=" 登 录 " onclick="userLogin()" />
	</div>
</form>
    </div>
	</div>

</div>
</body>
</html>
